<template>
  <div class="page textBg1">
    <div class="box">Look at me!</div>
  </div>
</template>
<script setup>
import {} from "vue";
</script>
<style lang="scss">
.textBg1 {
  .box {
    margin: 50px auto;
    width: 600px;
    height: 200px;
    line-height: 200px;
    text-align: center;
    font-size: 60px;
    font-weight: 900;
    background-size: 1800px 200px;
    background: linear-gradient(45deg, #4cd137, #3498db, #4cd137, #3498db, #4cd137, #3498db) 0 0;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 3px 5px rgba(100, 100, 100, .3);
    transition: 2s;
    animation-name: text1-trans;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 5s;
  }
  @keyframes text1-trans {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 1200px 0;
    }
  }
}
</style>